const http=require('http')
const fs=require('fs')

const server=http.createServer()

server.on('request',(req,res)=>{
//解决跨域
res.setHeader('Access_Control-Allow-Origin','#')

res.writeHead(200,{
    "content-type":"text/plain;charset=utf-8"
})
fs.readFile('data/product.josn')


})